package com.javabasic.algorithm.sword_of_offer;

/**
 * @author mir.xiong
 * @version 1.0
 * @description
 * @see
 * @since Created by work on 2022/1/7 12:07 上午
 */
public class 剑指_Offer_58_II_左旋转字符串 {

    public String reverseLeftWords(String s, int n) {
        int len = s.length();
        String preStr = s.substring(0, n);
        StringBuilder result = new StringBuilder(s.substring(n));
        result.append(preStr);
        return result.toString();
    }
}
